package com.hzeport.bgs22emduty.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.masa.common.core.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalTime;
import java.time.format.DateTimeFormatter;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("EMDU_PARAM_DUTY")
@ApiModel(value = "参数-值班时段配置表")
public class ParamDuty extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "关区GUID，源自H4A")
    @TableField(value = "DUTY_DEPT")
    @JsonProperty(value = "dDept")
    private String dDept;

    @ApiModelProperty(value = "关区中文名称")
    @TableField(value = "DUTY_NAME")
    @JsonProperty(value = "dName")
    private String dName;

    @ApiModelProperty(value = "值班时段类型：1.上午；2.下午；3.夜间；4.全天；5.其他；6.白天")
    @TableField(value = "DUTY_TYPE")
    @JsonProperty(value = "dType")
    private String dType;

    @ApiModelProperty(value = "时段起始时间")
    @TableField(value = "DUTY_START_TIME")
    @JsonProperty(value = "dStartTime")
    private LocalTime dStartTime;

    @ApiModelProperty(value = "时段截止时间")
    @TableField(value = "DUTY_END_TIME")
    @JsonProperty(value = "dEndTime")
    private LocalTime dEndTime;


}
